package com.yunsc.store.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-05-26 20:52
 */
@Data
public class UserBalanceDTO {
    @JsonProperty("userId")
    @NotNull(message = "userId不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
    private Integer userId;
    private String target;
    private UserMoneyForm form;

    @Data
    public static class UserMoneyForm {
        private Balance balance;
        private Points points;
    }

    @Data
    public static class Balance {
        private String mode;
        private String money;
        private String value;
        private String remark;
    }

    @Data
    public static class Points {
        private String mode;
        private int value;
        private String remark;
    }
}
